﻿using System;
using System.Collections.Generic;

using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;
namespace yb.commerce.BLL
{
    public class PaymentMethodBusiness
    {
        public bool Add(PaymentMethod paymentMethod)
        {
            return new PaymentMethodDAO().Add(paymentMethod);
        }

        public bool Delete(int Id)
        {
            return new PaymentMethodDAO().Delete(Id);
        }

        public bool Update(PaymentMethod paymentMethod)
        {
            return new PaymentMethodDAO().Update(paymentMethod);
        }

        public PaymentMethod GetEntity(int Id)
        {
            return new PaymentMethodDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new PaymentMethodDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
    }
}
